package com.landeqing.dao.impl;

import com.landeqing.dao.EcportExcleDao;
import com.landeqing.model.User;
import com.landeqing.utils.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class EcportExcleDaoImpl  implements EcportExcleDao{

    public List<User> getList() {
        try{
            SqlSession sqlSession= MyBatisUtil.getSqlSession();
            List<User> userList=sqlSession.selectList("com.landeqing.userModel.list");
            return  userList;
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
